/******************************************************************************
 * FILENAME    : SQAUTILS.H
 * PRODUCT    : SoftPay ASPAC Base Application
 * VERSION     : 1.0
 * MODULE      : Utility Module
 * AUTHOR(S)  : Vipin_k1
 * CREATED     : 19-Jul-2000
 *
 * DESCRIPTION : This file shoudl be included by the modules which wish to
 *               utilise the Data Base Module.
 *
 * NOTES       :
 *
 * CONTENTS    :
 *
 *
 * MODIFICATION HISTORY    :
 *
 * #  Date       Who        History
 * -- --------   ---------- ---------------------------------------
 *
 *******************************************************************************
 * Copyright (C) 2000 by VeriFone Inc.
 * All rights reserved. No part of this software may be reproduced,transmitted,
 * transcribed, stored in a retrieval system, or translated into any language
 * or computer language, in any form or by any means, electronic, mechanical,
 * magnetic, optical, chemical, manual or otherwise, without the prior written
 * permission of VeriFone Inc.
 *                                                VeriFone Inc.
 *                                                III Lagoon Drive, Suite 400
 *                                                Redwood City, CA 94065
 ******************************************************************************
 */

#include <print.h>
#include <transact.h>
#ifndef _SQAUTILS
#define _SQAUTILS

#define ERROR_LOG                 10507
#define SQA_MAX_MESSAGE_SIZE    1000   //The maximum size allowed for Input Message
#define SQA_ONE_MESSAGE_SIZE    60     //size of one message displayed
#define CPAC_MAX_ERR_MSG_SIZE           40
#define CPAC_MAX_ERROR_LOG_RECS     25
#define SP_FIRST_REC                              1
#define CPAC_ERROR_LOG_FILE                "cpklog"
#define CPAC_MAX_ERR_PRINT_CHARS       40

short Multiprintf(short OutDevice,const char* fmt,...);
short SplitAndPrint(short OutDevice,char* wrkbuf);
short ActualPrintf(short OutDevice,char* msg);
static void vdCBAbort(int inErrNum);
int inCPACPrintLines(char* buffer,PRINTER_OBJECT* obPrinter);
int inCPACPrintErrorReport(TRANSACTION_OBJECT* pobTran);
int inCPACFindHandlesLeft(TRANSACTION_OBJECT* pobTran);
extern void ACTIVITY_LOG(const char*);
#endif
